<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      body,
      html {
        min-height: 100vh;
      }
      @keyframes move {
        0% {
          left: 0;
        }
        50% {
          left: -200px;
        }
        100% {
          left: 0;
        }
      }
      .container {
        height: 100vh;
        width: 1000px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .box {
        width: 100px;
        height: 100px;
        position: relative;
        background-color: lightblue;
        animation: move 1s 5;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="box"></div>
    </div>
  </body>
</html>
